//
//  RecordModel.m
//  RPay
//
//  Created by hzy on 2017/10/31.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import "RecordModel.h"

@implementation RecordModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"aid": @"id"};
}

-(void)setSendTime:(NSString *)sendTime{

    NSDate * date = [RecordModel dateWithInt64_t:[sendTime longLongValue]/1000];
    NSDateFormatter* formatter = [[NSDateFormatter alloc]init];
    [formatter setDateFormat:@"YYYY-MM-dd HH:mm"];
    _sendTime = [formatter stringFromDate:date];
    
}
-(void)setTakeInUser:(NSString *)takeInUser{

    _takeInUser = takeInUser;
    _takeUserArray  = [takeInUser componentsSeparatedByString:@","];
}


+ (NSDate *)dateWithInt64_t:(int64_t)time
{
    int64_t timeInterval = time ;
    return [NSDate dateWithTimeIntervalSince1970:timeInterval];
}

@end
